package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;

import java.util.List;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * Created by xiachao
 */

public class OrderListForSellerRequest {
    private List<String> subject;
    private String timePeriod;
    private String uiStatus;
    private long pageNum = 0;
    private long pageSize = 10;

    private OrderListForSellerRequest(OrderListForSellerRequest.Builder builder) {
        subject = builder.subject;
        timePeriod = builder.timePeriod;
        uiStatus = builder.uiStatus;
        pageNum = builder.pageNum;
        pageSize = builder.pageSize;
    }

    public static OrderListForSellerRequest.Builder newBuilder() {
        return new OrderListForSellerRequest.Builder();
    }



    public static final class Builder {
        private List<String> subject;
        private String timePeriod;
        private String uiStatus;
        private long pageNum = 0;
        private long pageSize = 10;

        private Builder() {
        }

        public OrderListForSellerRequest.Builder subject(List<String> subject) {
            this.subject = subject;
            return this;
        }

        public OrderListForSellerRequest.Builder timePeriod(String timePeriod) {
            this.timePeriod = timePeriod;
            return this;
        }

        public OrderListForSellerRequest.Builder uiStatus(String uiStatus) {
            this.uiStatus = uiStatus;
            return this;
        }

        public OrderListForSellerRequest.Builder pageNum(long pageNum) {
            this.pageNum = pageNum;
            return this;
        }

        public OrderListForSellerRequest.Builder pageSize(int pageSize) {
            this.pageSize = pageSize;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().getSellerOrderList(subject, timePeriod, uiStatus, pageNum, pageSize);
        }
    }
}
